home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970626-19970929
/
000278_news@newsmaster….columbia.edu _Tue Sep 2 12:23:53 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA19832
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 2 Sep 1997 12:23:52 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA10430
for kermit.misc@watsun; Tue, 2 Sep 1997 12:23:51 -0400 (EDT)
Path: news.columbia.edu!panix!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!news.apfel.de!univ-lyon1.fr!pasteur.fr!oleane!calvacom!not-for-mail
From: do11@calva.net (Dominique Ottello)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Two problems with arrays in MS-DOS Kermit 3.15
Date: Tue, 02 Sep 1997 16:18:29 GMT
Organization: PCatHome&Me
Lines: 35
Message-ID: <340c3bc1.101634@news.calvacom.fr>
References: <34085a7f.81052@news.calvacom.fr> <cJQy1iveLABq@cc.usu.edu>
Reply-To: do11@calva.net
NNTP-Posting-Host: parb08.calvacom.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Newsreader: Forte Agent 1.5/32.451
Xref: news.columbia.edu comp.protocols.kermit.misc:7597
the 30 Aug 97 15:37:54 MDT,
jrd@cc.usu.edu (Joe Doupnik) wrote :
> In article <34085a7f.81052@news.calvacom.fr>, do11@calva.net (Dominique Ottello) writes:
> > First : declare \&e[0] does not empty the last element.
>
> It does, but the last element is index value (array size - 1).
> That is, like C, elements start with subscript/index 0.
>
> > declare \&d[5]
>
> Declares an array of five elements, \&d[0]..\&d[4].
>
> > for \%i 1 5 1 {def \&d[\%i] No}
> Does nothing with last element (out of bounds)
Sorry, but it seems to be contrary to what I can read in the Changes.txt
file found in MSK315.zip. (I always apply RTFM before sending queries)
5. Substitution variables now support the notion of arrays of strings:
DECLARE \&<char>[size]
Allocates space for "size" number of strings. If size is 0 then the
structure becomes undefined.
\&<char>[index]
Is member index of the array <char>. Use DEFINE or ASSIGN to create
the array member. Index starts at 1 and should not exceed the
declared "size." Strings are limited in length to 1KB which is the
limit of a Kermit command. Not all members need be created, only the
ones you wish. An empty definition removes that member.
Best regards.
== Dominique Ottello == do11@calva.net == Paris == France ==